package cn.stylefeng.guns.modular.rec.mapper;

import cn.stylefeng.guns.modular.rec.entity.TransportDispatchVolMatch;
import cn.stylefeng.guns.modular.rec.model.params.TransportDispatchVolMatchParam;
import cn.stylefeng.guns.modular.rec.model.result.TransportDispatchVolMatchResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户订单体积匹配结果表 Mapper 接口
 * </p>
 *
 * @author zhangzh
 * @since 2024-10-18
 */
public interface TransportDispatchVolMatchMapper extends BaseMapper<TransportDispatchVolMatch> {

    /**
     * 获取列表
     *
     * @author zhangzh
     * @Date 2024-10-18
     */
    List<TransportDispatchVolMatchResult> customList(@Param("paramCondition") TransportDispatchVolMatchParam paramCondition);

    List<TransportDispatchVolMatchResult> customTranList(@Param("paramCondition") TransportDispatchVolMatchParam paramCondition);


    /**
     * 获取map列表
     *
     * @author zhangzh
     * @Date 2024-10-18
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") TransportDispatchVolMatchParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhangzh
     * @Date 2024-10-18
     */
    Page<TransportDispatchVolMatchResult> customPageList(@Param("page") Page page, @Param("paramCondition") TransportDispatchVolMatchParam paramCondition, @Param("condition") String condition);

    Page<TransportDispatchVolMatchResult> customTranPageList(@Param("page") Page page, @Param("paramCondition") TransportDispatchVolMatchParam paramCondition, @Param("condition") String condition);

    Page<TransportDispatchVolMatchResult> customTran2PageList(@Param("page") Page page, @Param("paramCondition") TransportDispatchVolMatchParam paramCondition, @Param("condition") String condition);

    Page<TransportDispatchVolMatchResult> customTran3PageList(@Param("page") Page page, @Param("paramCondition") TransportDispatchVolMatchParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhangzh
     * @Date 2024-10-18
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") TransportDispatchVolMatchParam paramCondition);

    List<TransportDispatchVolMatchResult> findByIds(@Param("idList") List<String> idList);

    int delAll(@Param("idList") List<String> idList);
}
